package com.dyc.caradvertisting.ui.fmt.linkmain;


import com.njh.tools.base.BaseModel;
import com.njh.tools.base.BasePresenter;
import com.njh.tools.base.BaseView;

import rx.Observable;

/**
 * Home抽象类
 */
public interface LinkMainContract {
    interface Model extends BaseModel {
        /**
         * 修改或者添加联系人
         * @param path
         * @param act
         * @param param
         * @param sign
         * @param strtime
         * @return
         */
        Observable reqChangeLinkMain(String path,
                                    String act,
                                    String param,
                                    String sign,
                                    String strtime);

        /**
         * 获取联系人
         * @param path
         * @param act
         * @param param
         * @param sign
         * @param strtime
         * @return
         */
        Observable reqGainLinkMain(String path,
                                     String act,
                                     String param,
                                     String sign,
                                     String strtime);

    }


    interface View extends BaseView {
        //关闭
      void finish();
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void reqGainLinkMain(String param);
        public abstract void reqChangeLinkMain(String param);

    }
}